package bbcom.messages;

import java.util.ListResourceBundle;

/**
 * Created by Thanh-Trung Pham.
 */
public class BBCoMMessageResource extends ListResourceBundle {

    //////////////////////////////////////////////////////
    //Messages from 1 to 999 are for the BBCoMModeling component.
    public static final String BBCOMMODELING_INVALID_REUSING = "1";
    public static final String BBCOMMODELING_UNEXPECTED_EXCEPTION = "2";
    public static final String BBCOMMODELING_INVALID_BBCOMINSTANCE = "3";
    public static final String BBCOMMODELING_NOT_EXISTING_BBCOMINSTANCEFILENAME = "4";

    //////////////////////////////////////////////////////
    //Messages from 1000 to 1999 are for the BBCoMGlobalTraversing component.
    public static final String BBCOMTRAVERSING_INVALID_BBCOMINSTANCE_TO_TRAVERSE = "1000";
    public static final String BBCOMTRAVERSING_UNEXPECTED_EXCEPTION = "1001";

    //////////////////////////////////////////////////////
    //Messages from 2000 to 2999 are for the BBCoMDeploying component.
    public static final String BBCOMDEPLOYING__UNEXPECTED_EXCEPTION = "2000";

    private static final Object[][] CONTENTS = {
            ////////////////////////////////////////////////////////////////////////////////////
            //for the BBCoMModeling component.
            {BBCOMMODELING_INVALID_REUSING, "BBCoMModelling cannot be reused."},
            {BBCOMMODELING_UNEXPECTED_EXCEPTION, "Unexpected exception: {0}."},
            {BBCOMMODELING_INVALID_BBCOMINSTANCE, "The BBCoMInstance is invalid."},
            {BBCOMMODELING_NOT_EXISTING_BBCOMINSTANCEFILENAME, "The BBCoM instance file ''{0}'' is not existing."},

            ////////////////////////////////////////////////////////////////////////////////////
            //for the BBCoMGlobalTraversing component.
            {BBCOMTRAVERSING_INVALID_BBCOMINSTANCE_TO_TRAVERSE, "The BBCoM instance is invalid to travers."},
            {BBCOMTRAVERSING_UNEXPECTED_EXCEPTION, "Unexpected exception: {0}."},

            ////////////////////////////////////////////////////////////////////////////////////
            //for the BBCoMDeploying component.
            {BBCOMDEPLOYING__UNEXPECTED_EXCEPTION, "Unexpected exception: {0}."},

    };

    @Override
    protected Object[][] getContents() {
        return CONTENTS;
    }
}
